package com.lzh.farmersshop.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Order)实体类
 *
 * @author makejava
 * @since 2024-01-04 15:37:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`order`")
public class Order implements Serializable {
    private static final long serialVersionUID = 411370989805029557L;
    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 下单时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 1未付款2已付款3待发货4待签收5已签收
     */
    private Integer state;
    /**
     * 订单总价
     */
    private BigDecimal sumprice;
    /**
     * 发货时间
     */
    private Date fhtime;
    /**
     * 发货地址
     */
    private String fhadress;
    /**
     * 收货id
     */
    private Integer adressid;
    /**
     * 收货时间
     */
    private Date shtime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 1正常2已删除
     */
    private Integer isdelete;
    /**
     * 订单号
     */
    private Long orderid;
    /**
     * 订单详情
     */
    @TableField(exist = false)
    private List<Orderdetails> children;
    /**
     * 订单时间
     */
    @TableField(exist = false)
    private String timeString;
    /**
     * 用户名称
     */
    @TableField(exist = false)
    private String username;
    /**
     * 订单时间
     */
    @TableField(exist = false)
    private String shprovince;


}
